public class SynchronizedThreadIncrementer extends Thread {
	private AtomicIntegerWithLock number;
	private int count;

	public SynchronizedThreadIncrementer(AtomicIntegerWithLock number, int count) {
		this.number = number;
		this.count = count;
	}

	@Override
	public void run() {
		for (int i = 0; i < count; i++) {
			number.increment();
		}
	}
};
